package com.jieyang.oa.dao;

import com.jieyang.oa.pojo.Vo.ExpenseListVo;
import com.jieyang.oa.pojo.entity.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.relational.core.sql.In;

import java.util.List;

@Mapper
public interface PaymentDao {
    public Integer insert(Payment payment);

    List<ExpenseListVo> selectExpense(@Param("startDate") String startDate,
                                      @Param("endDate") String endDate,
                                      @Param("deptNo") Long deptNo,
                                      @Param("realName") String realName);

    Integer count(String startDate, String endDate, Long deptNo, String realName);
}
